package(default_visibility = ["//tools/build_defs:internal_pkg"])

licenses(["notice"])  # Apache 2.0

filegroup(
    name = "test_lib",
    srcs = [
        "test_util.sh",
    ],
)

sh_test(
    name = "keyset_reader_writer_test",
    size = "small",
    srcs = [
        "keyset_reader_writer_test.sh",
    ],
    data = [
        ":test_lib",
        "//tools/testing/cc:keyset_reader_writer_cli",
        "//tools/tinkey",
    ],
)

sh_test(
    name = "aead_test",
    size = "medium",
    srcs = [
        "aead_test.sh",
    ],
    data = [
        ":test_lib",
        "//tools/testing:aead_cli_java",
        "//tools/testing/cc:aead_cli_cc",
        "//tools/tinkey",
    ],
)

sh_test(
    name = "mac_test",
    size = "medium",
    srcs = [
        "mac_test.sh",
    ],
    data = [
        ":test_lib",
        "//tools/testing:mac_cli_java",
        "//tools/testing/cc:mac_cli_cc",
        "//tools/tinkey",
    ],
)

sh_test(
    name = "hybrid_encryption_test",
    size = "medium",
    srcs = [
        "hybrid_encryption_test.sh",
    ],
    data = [
        ":test_lib",
        "//tools/testing:hybrid_decrypt_cli_java",
        "//tools/testing:hybrid_encrypt_cli_java",
        "//tools/testing/cc:hybrid_decrypt_cli_cc",
        "//tools/testing/cc:hybrid_encrypt_cli_cc",
        "//tools/tinkey",
    ],
)

sh_test(
    name = "signature_test",
    size = "medium",
    srcs = [
        "signature_test.sh",
    ],
    data = [
        ":test_lib",
        "//tools/testing:public_key_sign_cli_java",
        "//tools/testing:public_key_verify_cli_java",
        "//tools/testing/cc:public_key_sign_cli_cc",
        "//tools/testing/cc:public_key_verify_cli_cc",
        "//tools/tinkey",
    ],
)
